package com.itany.corejava.code16_反射;

/**
 * @author MissChen
 * @version 1.0
 * @date 2023 年12月18日 10:55
 */
public class User extends Person implements A{
    public String username;
    private String password;



    public User() {
    }

    private User(String username) {
        this.username = username;
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public User(String name, Integer age, String username, String password) {
        super(name, age);
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int sum(int i, int j){
        return i+j;
    }
    private double add(double i,double j){
        return i+j;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}

interface A{}